package cre.spring.javaconfig4;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author guchenbo
 * @Date 2019/4/20.
 */
public class AppBoot {
    public static void main(String[] args) {
        ApplicationContext context =
                        new AnnotationConfigApplicationContext("cre.spring.javaconfig4");
        Foo foo = context.getBean("foo", Foo.class);
        foo.say();
    }
}
